<?php
$this->load->view('header');
?>

<div>
    <form name="edit_shop_car" id="edit_shop_car"  method="post" action="<?=site_url()?>/order/edit_shop_car">
<?PHP
    if( $shop_car != null ){
        echo "
            <br/>
            您的购物车如下：
            <br/>
            <table>
            <tr>
                <th width=\"200px\">书名</th>
                <th width=\"100px\">isbn</th>
                <th width=\"100px\">订购数量</th>
                <th width=\"100px\">删除</th>
            </tr>";
        foreach( $shop_car as $book_info ) {
            echo "<tr>";
            echo "<td width=\"200px\" align=\"center\">" . $book_info->title . "</td>";
            echo "<td width=\"100px\" align=\"center\">" . $book_info->isbn13 . "</td>";
            echo "<td width=\"100px\" align=\"center\">
                  <input type=\"text\" name=\"order_number\" size=\"1px\" value=\"" . $book_info->order_number . "\"/></td>";
            echo "<td width=\"100px\" align=\"center\">删除</td>";
            echo "</tr>";
        }
        echo "
            </table>";
        echo "
            <input type=\"submit\" value=\"确定\">
            <input type=\"hidden\" name=\"go\" value=\"yes\"/>";
    }
    else
        echo "<p><font color=\"red\">购物车为空。</font></p>";
?>

    </form>
</div>

<?php
$this->load->view('footer');
?>
